﻿/*
     * Created By @ Dzung.NguyenManh    
     * Created Date: 
     * Email:Dzung.nguyenmanh@gmail.com
     * Modidy Date:
     * Compayny : MITC.co
     * Address:
     */
namespace MITC.Portal.Core.Entitys.Configuration.MenuConfg
{

    #region using refer
    using System;
    using System.Linq;
    using SPGenesis.Entities;

    #endregion

    public class MenuMaping:SPGENEntityMap<MenuEntity>
    {
        protected override void InitializeMapper()
        {
            RegisterIdentifierProperty(p => p.ID);
            MapField(p => p.Tieude, "Title");
            MapField(p => p.ParentId, MenuInstance.ParentId.InternalName);
            MapField(p => p.RelativateUrl, MenuInstance.RelativateUrl.InternalName);
            MapField(p => p.OrderId, MenuInstance.OrderId.InternalName);
            MapField(p => p.Display, MenuInstance.Display.InternalName);
            MapField(p => p.OldId, MenuInstance.OldId.InternalName);
            MapField(p => p.GroupMenu, MenuInstance.GroupMenu.InternalName);
            MapField(p => p.DisplayInTop, MenuInstance.DisplayInTop.InternalName);
            MapField(p => p.ParentIdOld, MenuInstance.OldParentId.InternalName);
        }
    }
}
